﻿using Future.IBLL;
using Future.IDAL;
using Future.Model;

namespace Future.BLL
{
    /// <summary>
    /// 描述：文件信息业务类
    /// 创建人： yangkai
    /// 创建时间：2022/12/22 15:55:21
    /// </summary>
    public class FileInfoBLL : IFileInfoBLL
    {
        private readonly IFileInfoDAL _fileInfoDAL;

        public FileInfoBLL(IFileInfoDAL fileInfoDAL)
        {
            _fileInfoDAL = fileInfoDAL;
        }

        public FileInfoModel GetFileInfoById(Guid id)
        {
            return _fileInfoDAL.Get(x => x.Id == id);
        }

        public bool SaveInfos(List<FileInfoModel> fileInfos)
        {
            return _fileInfoDAL.InsertMany(fileInfos);
        }
    }
}
